import React, { Component } from 'react';

export default class DetailDynamic extends Component {
    constructor(props) {
        super(props);
    }

    componentDidMount() {

    }

    render() {
        const { logList } = this.props;
        let LogNode;
        if (logList && logList.data) {
            LogNode = logList.data.list.map((item) => {
                return (
                    <div className="record-con-div" key={item.id}>
                        <img src={require('../../images/customerDefault.png')} />
                        <div className="record-con">
                        <div className="user-name">{item.createdName}</div>
                        <div className="con-detail">{item.content}</div>
                        <div className="record-time">{item.createTime}</div>
                        </div>
                    </div>
                )
            })
        } else {
            LogNode = ("")
        }

        return (
            <section className="offside-wrapper">
                <div className="title">动态</div>
                <div className="content">
                  <section className="record-cons ">
                    <div className="list-wrapper">
                        {LogNode}
                    </div>
                    <div className="load-more"> 
                    </div>
                  </section>
                </div>
            </section>
        )
    }
}